package Vista;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VistaMenu extends javax.swing.JFrame {
	private JPanel jmenu;
	public JButton btnBasico;
	public JTextField txtfilas;
	public JButton btnAvanzado;
	public JButton btnaceptar;
	public JButton btncancelar;
	public JTextField txtminas;
	public JLabel lblminas;
	public JLabel lblfilas;
	public JButton btnestadistica;
	public JButton btnatras;
	public JTextField txtcolumnas;
	public JLabel lblcolumnas;
	public JLabel lblpersonalizar;
	private JButton btnsalir;
	public JLabel lblopciones;
	public JButton btnayuda;
	public JButton btnpersonalizado;
	public JButton btnavanzado;
	public JButton btnmedio;
	public JLabel lblniveles;
	int fils;
	int cols;
	public JButton btnintermedio;
	public JButton btnbasico;
	public JLabel jLabelestadistica;
	int totalminas;
	

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VistaMenu inst = new VistaMenu();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
				inst.setTitle("BuscaMinas");
			}
		});
	}
	
	public VistaMenu() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			//panFondo.setRutaImagen("/imagenes/imagenfondo.png");
			this.setTitle("Busca Minas");
			getContentPane().setBackground(new java.awt.Color(255,255,255));

			{
				jmenu = new JPanel();
				getContentPane().add(jmenu);
				jmenu.setLayout(null);
				jmenu.setBounds(12, 12, 459, 299);
				jmenu.setFocusable(false);
				jmenu.setBackground(new java.awt.Color(131,197,245));
				{
					lblniveles = new JLabel();
					jmenu.add(lblniveles);
					lblniveles.setText("Niveles del Juego");
					lblniveles.setBounds(100, 12, 285, 27);
					lblniveles.setFont(new java.awt.Font("Tahoma",1,28));
				}
				{
					btnBasico = new JButton();
					jmenu.add(btnBasico);
					btnBasico.setText("Basico");
					btnBasico.setBounds(41, 68, 80, 27);
					btnBasico.setFont(new java.awt.Font("Times New Roman",1,11));
					btnBasico.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("btnBasico.actionPerformed, event="+evt);
							
							//TODO add your code for btnBasico.actionPerformed
						}
					});
				}
				{
					btnmedio = new JButton();
					jmenu.add(btnmedio);
					btnmedio.setText("Intermedio");
					btnmedio.setBounds(146, 68, 118, 27);
					btnmedio.setFont(new java.awt.Font("Times New Roman",1,11));
					btnmedio.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("btnmedio.actionPerformed, event="+evt);
							//TODO add your code for btnmedio.actionPerformed
						}
					});
				}
				{
					btnavanzado = new JButton();
					jmenu.add(btnavanzado);
					btnavanzado.setText("Avanzado");
					btnavanzado.setBounds(288, 68, 129, 28);
					btnavanzado.setFont(new java.awt.Font("Times New Roman",1,11));
					btnavanzado.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("btnavanzado.actionPerformed, event="+evt);
							//TODO add your code for btnavanzado.actionPerformed
						}
					});
				}
				{
					btnpersonalizado = new JButton();
					jmenu.add(btnpersonalizado);
					btnpersonalizado.setText("Personalizado");
					btnpersonalizado.setBounds(158, 156, 130, 28);
					btnpersonalizado.setFont(new java.awt.Font("Times New Roman",1,11));
					
				}
				{
					btnayuda = new JButton();
					jmenu.add(btnayuda);
					btnayuda.setText("Ayuda");
					btnayuda.setBounds(112, 226, 85, 25);
					btnayuda.setFont(new java.awt.Font("Times New Roman",1,11));
					btnayuda.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("btnayuda.actionPerformed, event="+evt);
							//TODO add your code for btnayuda.actionPerformed
						}
					});
				}
				{
					lblopciones = new JLabel();
					jmenu.add(lblopciones);
					lblopciones.setText("Opciones");
					lblopciones.setBounds(166, 195, 132, 33);
					lblopciones.setFont(new java.awt.Font("Tahoma",1,16));
				}
				{
					btnestadistica = new JButton();
					jmenu.add(btnestadistica);
					btnestadistica.setText("Estadisticas");
					btnestadistica.setBounds(240, 227, 129, 24);
					btnestadistica.setFont(new java.awt.Font("Times New Roman",1,11));
					}
				{
					btnsalir = new JButton();
					jmenu.add(btnsalir);
					btnsalir.setText("Salir");
					btnsalir.setBounds(369, 264, 79, 24);
					btnsalir.setFont(new java.awt.Font("Times New Roman",1,11));
					btnsalir.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("btnsalir.actionPerformed, event="+evt);
							
							//TODO add your code for btnsalir.actionPerformed
						}
					});
				}
				{
					lblpersonalizar = new JLabel();
					jmenu.add(lblpersonalizar);
					lblpersonalizar.setText("Personalizar Juego");
					lblpersonalizar.setBounds(121, 110, 216, 31);
					lblpersonalizar.setFont(new java.awt.Font("Times New Roman",1,22));
				}
				{
					lblcolumnas = new JLabel();
					jmenu.add(lblcolumnas);
					lblcolumnas.setText("Columnas");
					lblcolumnas.setBounds(29, 191, 85, 16);
					lblcolumnas.setFont(new java.awt.Font("Times New Roman",1,12));
					lblcolumnas.setVisible(false);
				}
				{
					txtcolumnas = new JTextField();
					jmenu.add(txtcolumnas);
					txtcolumnas.setBounds(91, 187, 58, 23);
					txtcolumnas.setVisible(false);
				}
				{
					lblfilas = new JLabel();
					jmenu.add(lblfilas);
					lblfilas.setText("Filas");
					lblfilas.setBounds(174, 191, 61, 16);
					lblfilas.setFont(new java.awt.Font("Times New Roman",1,12));
					lblfilas.setVisible(false);
				}
				{
					txtfilas = new JTextField();
					jmenu.add(txtfilas);
					txtfilas.setBounds(227, 187, 69, 23);
					txtfilas.setVisible(false);
				}
				{
					lblminas = new JLabel();
					jmenu.add(lblminas);
					lblminas.setText("Minas");
					lblminas.setBounds(310, 191, 43, 16);
					lblminas.setFont(new java.awt.Font("Times New Roman",1,12));
					lblminas.setVisible(false);
				}
				{
					txtminas = new JTextField();
					jmenu.add(txtminas);
					txtminas.setBounds(353, 187, 61, 24);
					txtminas.setVisible(false);
				}
				{
					btncancelar = new JButton();
					jmenu.add(btncancelar);
					btncancelar.setText("Cancelar");
					btncancelar.setVisible(false);
					btncancelar.setBounds(202, 227, 136, 22);
					btncancelar.setFont(new java.awt.Font("Times New Roman",1,12));
					
				}
				{
					btnaceptar = new JButton();
					jmenu.add(btnaceptar);
					btnaceptar.setText("Aceptar");
				    btnaceptar.setVisible(false);
					btnaceptar.setBounds(45, 226, 148, 23);
					btnaceptar.setFont(new java.awt.Font("Times New Roman",1,12));
					btnaceptar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("btnaceptar.actionPerformed, event="+evt);
							//TODO add your code for btnaceptar.actionPerformed
						}
					});
				}
				{
					jLabelestadistica = new JLabel();
					jmenu.add(jLabelestadistica);
					jLabelestadistica.setText("Estadisticas");
			
					jLabelestadistica.setBounds(146, 12, 353, 35);
					jLabelestadistica.setFont(new java.awt.Font("Segoe UI",3,20));
					jLabelestadistica.setVisible(false);
				}
				{
					btnbasico = new JButton();
					jmenu.add(btnbasico);
					btnbasico.setText("Nivel Basico");
					btnbasico.setBounds(98, 63, 240, 22);
					btnbasico.setVisible(false);
				}
				{
					btnintermedio = new JButton();
					jmenu.add(btnintermedio);
					btnintermedio.setText("Nivel Intermedio");
					btnintermedio.setBounds(97, 119, 240, 23);
					btnintermedio.setVisible(false);				
				}
				{
					btnAvanzado = new JButton();
					jmenu.add(btnAvanzado);
					btnAvanzado.setText("Nivel Avanzado");
					btnAvanzado.setBounds(99, 171, 238, 23);
					btnAvanzado.setVisible(false);
				}
				{
					btnatras = new JButton();
					jmenu.add(btnatras);
					btnatras.setText("Atras");
					btnatras.setBounds(276, 265, 82, 23);
					btnatras.setFont(new java.awt.Font("Bitstream Charter",1,14));
					btnatras.setVisible(false);
				}
			}
			pack();
			this.setSize(504, 354);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void addListener(ActionListener actionListener) {
		// TODO Auto-generated method stub
		this.btnBasico.addActionListener(actionListener);
		this.btnmedio.addActionListener(actionListener);
		this.btnavanzado.addActionListener(actionListener);
        this.btnaceptar.addActionListener(actionListener);
        this.btnpersonalizado.addActionListener(actionListener);
        this.btncancelar.addActionListener(actionListener);
	    this.btnsalir.addActionListener(actionListener);
	    this.btnbasico.addActionListener(actionListener);
	    this.btnintermedio.addActionListener(actionListener);
	    this.btnAvanzado.addActionListener(actionListener);
	    this.btnestadistica.addActionListener(actionListener);
	    this.btnatras.addActionListener(actionListener);
	}

	public String getTxtfilas() {
		return txtfilas.getText();
	}

	public void setTxtfilas(String txtfilas) {
		this.txtfilas.setText(txtfilas);
	}

	public String getTxtminas() {
		return txtminas.getText();
	}

	public void setTxtminas(String txtminas) {
		this.txtminas.setText(txtminas);
	}

	public String getTxtcolumnas() {
		return txtcolumnas.getText();
	}

	public void setTxtcolumnas(String txtcolumnas) {
		this.txtcolumnas.getText();
	}
	public void setfils(int f)
	{
		fils=f;
		
	}
	public int getfils()
	{
		return fils;
	}
    public void settotalminas(int totalminas)
    {
    	totalminas=totalminas;
    }
    public int gettotalminas()
    {
    	return totalminas;
    }
    public void setcols(int cols)
    {
    	cols=cols;
    }
    public int getcols()
    {
    	return cols;
    }
	
	
}
